{% extends 'layout.html' %}
{% block title %}换电站列表{% endblock %}
{% block content %}
<div class="container">
    <div class="row">
        <div class="col" align="center">
            <h2>{{station.station_name}}</h2>
            <table class="table table-striped">
                <thead>
                        <tr>
                            <th>订单编号</th>
                            <th>车牌号码</th>
                            <th>开始换电时间</th>
                            <th>结束换电时间</th>
                            <th>换电类型</th>
                        </tr>
                    </thead>
                    <tbody>
                    {% if services %}
                        {% for service in services %}
                        <tr>
                            <td><a href="/service_feature/{{service.order_sn}}/">{{ service.order_sn }}</a></td>
                            <td>{{ service.plate_number }}</td>
                            <td>{{ service.start_time }}</td>
                            <td>{{ service.stop_time }}</td>
                            <td>{{ service.swap_type }}</td>
                        </tr>
                        {% endfor %}
                    {% else %}
                        <p>未查询到换电记录</p>
                    {% endif %}
                    </tbody>
            </table>
        </div>
    </div>
</div>
{% endblock %}